package org.flow.basic.doubts.tjbase;

import java.util.Random;

/**
 * @author xl-9527
 * @since 2024/6/15
 **/
public class AssertDemoTest {

    public static void main(String[] args) {
        int getNum = getRomNum();
        assert getNum != 2 && getNum != 3;
        assert false : "An exception has occurred";
        System.out.println(getNum);
    }

    private static int getRomNum() {
        return new Random().nextInt();
    }
}
